#include<iostream>
using namespace std;

class Base {
    private:
        double x,y;
        const double p;
    public:
        Base(double m,double n,double d):p(d) {
            x = m;
            y = n;
        }
        void show();
        void show() const;
        void display() {
            cout << "x = " << x << ",y = " << y << ",p = " << p << endl;
        }
};

void Base::show() {
    cout << x << "," << y << ",p = " << p << endl;
}

void Base::show() const {
    cout << x << "," << y << ",const p = " << p << endl;
}

int main() {
    Base a(8.9,7.2,6.8);
    const Base b(2.5,2.6,2.8);
    b.show();
    b.display();
    a.show();
    return 0;
}
